package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @Description:
 * @Create by: wanglei
 * @Date: 2021/11/7 11:07
 */

/**
 * 题目的选项。
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Document(collection = "option")
public class Option implements java.io.Serializable{

    private ObjectId id; //主键id

    private String questionId;  //选项对应的题目id

    private String option;  //试卷的题目的选项

    private Integer score;  //该选项的得分

}
